home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 2.6 KB | 101 lines | [TEXT/GEOL] |
- Item 5461448 31-May-90 08:19PDT
-
- From: V0344 Siemens Gammasonics, H Koopmans,VAR
-
- To: MACAPP.TECH$ MacApp Technical
-
- cc: ROSENSTEIN1 Rosenstein, Larry
-
- Sub: QD32 Ques
-
- Sorry, the first message was garbage, this is my second attempt. I am
- having problems with Applelink 5.1. I sent this with 5.0.
-
-
- In regards to the compile error of QD32bit routines --
- The compile error is on the parameter GWorldFlags, not FrameRect.
- That may not have been clear in the first message. I can get it to
- compile if I comment out the 2 lines above it. (GetGworld and
- CatchFailures) Does this imply a uses problem?
-
- As before: MacApp 2.0b9
- MPW 3.1
- System 6.0.5
-
-
-
- My source code looks something like this:
-
-
- {$S AOpen}
- PROCEDURE TImageDoc.MakeMyOffScreen(frameRect: Rect);
-
- VAR
- oldPerm: Boolean;
- oldGD: GDHandle;
- oldGW, newGW: GWorldPtr;
- hsvc: HSVColor;
- rgbc: RGBColor;
- x: INTEGER;
- r: Rect;
- Erry: QDErr;
- fi: FailInfo;
-
- PROCEDURE OffScreenError(error: OSErr; message: Longint);
- Begin
- { oldPerm := PermAllocation(oldPerm); }
- SetGWorld(CGrafPtr(OldGW), OldGD);
- End;
-
-
- BEGIN
-
- GetGWorld(CGrafPtr(oldGW),oldGD);
- CatchFailures(fi, OffScreenError); { cleanup on error }
-
- Erry := NewGWorld( newGW,32,frameRect,nil,nil, GWorldFlags(0));
- {$IFC qDebug}
- writeln('QDerr=',Erry);
- {$ENDC}
-
- FailOSErr(Erry); { exit if err }
- fOffGW := newGW;
- {Begin }
- { Lock before drawing }
- IF (LockPixels(fOffGW^.portPixMap)) THEN
- BEGIN
- .............................
-
-
-
-
- Compile error on GWorldFlags parameter looks like this:
-
-
- MABUILD EXERCISER
- MABuild - v. 2.0ß9 Release 7/5/89 Start: 9:31:16 AM 5/29/90
-
- Copyright Apple Computer, Inc. 1986-1989
- All Rights Reserved.
-
- Target Folder: "scsi0:ACE:AcqObj Code:AcqObjectNew:.Debug Files:"
- Making: EXERCISER.MAMake
- Compiling: UEXERCISER.p
- # Erry := NewGWorld( newGW,32,frameRec,nil,nil, GWorldFlags(0));
- # ?
- ### Pascal - Error 169 Value out of range
- #------------------------------------------------------------------------------
- --------------------------------------------------
- File "UExerciser.inc1.p"; Line 719 # Compiling scsi0:ACE:AcqObj
- Code:AcqObjectNew:UEXERCISER.p
- #------------------------------------------------------------------------------
- --------------------------------------------------
- ### MPW Shell - Execution of scsi0:ACE:AcqObj Code:AcqObjectNew:.Debug
- Files:EXERCISER.MakeIt terminated.
-
-
-
- Thanks for your help.
- Lorraine Condic - V0344
-
-